<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Module: Spec::Rails</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Module</strong></td>
          <td class="class-name-in-header">Spec::Rails</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/assigns_hash_proxy_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/assigns_hash_proxy.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/base_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/base.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/functional_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/functional.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/helper_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/helper.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/view_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/view.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/ivar_proxy_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/ivar_proxy.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/dsl.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/redirect_to_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/redirect_to.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/render_template_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails/version_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb
                </a>
        <br />
                <a href="../../files/vendor/plugins/rspec_on_rails/lib/spec/rails_rb.html">
                vendor/plugins/rspec_on_rails/lib/spec/rails.rb
                </a>
        <br />
            </td>
        </tr>

        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <h1><a href="Rails.html">Spec::Rails</a></h1>
<p>
<a href="Rails.html">Spec::Rails</a> (a.k.a. RSpec on <a
href="Rails.html">Rails</a>) is a Ruby on <a href="Rails.html">Rails</a>
plugin that allows you to drive the development of your RoR application
using RSpec, a framework that aims to enable Behaviour Driven Development
in Ruby.
</p>
<h2>Features</h2>
<ul>
<li>Use RSpec to independently specify <a href="Rails.html">Rails</a> Models,
Views, Controllers and Helpers

</li>
<li>Integrated fixture loading

</li>
<li>Special generators for Resources, Models, Views and Controllers that
generate Specs instead of Tests.

</li>
</ul>
<h2>Vision</h2>
<p>
For people for whom TDD is a brand new concept, the testing support built
into Ruby on <a href="Rails.html">Rails</a> is a huge leap forward. The
fact that it is built right in is fantastic, and Ruby on <a
href="Rails.html">Rails</a> apps are generally much easier to maintain than
they might have been without such support.
</p>
<p>
For those of us coming from a history with TDD, and now BDD, the existing
support presents some problems related to dependencies across specs. To
that end, RSpec on <a href="Rails.html">Rails</a> supports 4 types of
specs. We’ve also built in first class mocking and stubbing support in
order to break dependencies across these different concerns.
</p>
<h2>More Information</h2>
<p>
See Spec::Rails::Runner for information about the different kinds of
contexts you can use to spec the different <a href="Rails.html">Rails</a>
components
</p>
<p>
See Spec::Rails::Expectations for information about <a
href="Rails.html">Rails</a>-specific expectations you can set on responses
and models, etc.
</p>
<h2>License</h2>
<p>
RSpec on <a href="Rails.html">Rails</a> is licensed under the same license
as RSpec itself, the MIT-LICENSE.
</p>

    </div>


   </div>


  </div>


    <!-- if includes -->

    <div id="section">

    <div id="class-list">
      <h3 class="section-bar">Classes and Modules</h3>

      Module <a href="Rails/DSL.html" class="link">Spec::Rails::DSL</a><br />
Module <a href="Rails/Matchers.html" class="link">Spec::Rails::Matchers</a><br />
Class <a href="Rails/TestCase.html" class="link">Spec::Rails::TestCase</a><br />

    </div>




      


    <!-- if method_list -->


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>